package com.eastedu.superise.handler.question;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.eastedu.repository.question.mapper.QuestionBasicInfoMapper;
import com.eastedu.repository.question.mapper.QuestionItemMapper;
import com.eastedu.superise.handler.question.handler.answerparentheses.ChoiceQuestionAnswerParenthesesContentHandler;
import com.eastedu.superise.handler.question.handler.answerparentheses.underline.StemUnderlineContentConverter;
import com.eastedu.superise.handler.question.handler.answerparentheses.underline.StemUnderlineContentParser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * 单选、多选、不定项、判断题的题干新增结构化的作答括号 刷历史数据
 *
 * @author superman
 */
@Slf4j
@Service
@DS("question")
public class ChoiceQuestionAnswerParenthesesHistoricalDataHandler2 extends ChoiceQuestionAnswerParenthesesHistoricalDataHandler {

    /**
     * Instantiates a new Choice question answer parentheses historical data handler.
     *
     * @param questionBasicInfoMapper the question basic info mapper
     * @param questionItemMapper      the question item mapper
     */
    public ChoiceQuestionAnswerParenthesesHistoricalDataHandler2(QuestionBasicInfoMapper questionBasicInfoMapper, QuestionItemMapper questionItemMapper) {
        super(questionBasicInfoMapper, questionItemMapper);
    }

    @Override
    protected ChoiceQuestionAnswerParenthesesContentHandler getContentHandler() {
        return new ChoiceQuestionAnswerParenthesesContentHandler(new StemUnderlineContentParser(), new StemUnderlineContentConverter());
    }
}
